package com.ganbo.user.client;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;


@SpringBootApplication(scanBasePackages = {"com.ganbo.user.client.**", "com.ganbo.user.api.api.fallback"})
@EnableEurekaClient
@EnableFeignClients(basePackages = {"com.ganbo.user.api.api"})
@EnableCircuitBreaker  //开启Hystrix
public class UserClientApplication {

    public static void main(String[] args) {
        SpringApplication.run(UserClientApplication.class, args);
    }

}
